/*
 *  UI_OutputPanel.cpp
 *
 *	Date: 2011-5-9
 *  Author: linshenqi
 */

#include "stdafx.h"
#include "./UI_Frame.h"

UI_OutputPanel::UI_OutputPanel(const CRect *pRect, const GRAPHICPROP *pProp)
	: GraphicBase(pRect, pProp)
{}

bool UI_OutputPanel::OnPaint()
{
	CPaintDC dc(this->m_pWnd);
	this->SetDC(&dc);
	GRAPHICPROP prop;
	prop.clrFill = OP_COLOR;
	prop.clrFrame = OP_COLOR;
	this->DrawRect(this->m_pRect, &prop);

	return GraphicBase::OnPaint();
}

bool UI_OutputPanel::OnLButtonDown(UINT nFlags, CPoint point)
{
	return GraphicBase::OnLButtonDown(nFlags, point);
}

bool UI_OutputPanel::OnLButtonUp(UINT nFlags, CPoint point)
{
	return GraphicBase::OnLButtonUp(nFlags, point);
}

bool UI_OutputPanel::OnMouseMove(UINT nFlags, CPoint point)
{
	return GraphicBase::OnMouseMove(nFlags, point);
}

void UI_OutputPanel::SetRect(const CRect *pRect)
{
	GraphicBase::SetRect(pRect);
}

void UI_OutputPanel::SetID(int id)
{
	GraphicBase::SetID(id);
}

void UI_OutputPanel::SetBaseWindow(CWnd *pWnd)
{
	GraphicBase::SetBaseWindow(pWnd);
}

void UI_OutputPanel::Redraw()
{
	GraphicBase::Redraw();
}